package com.itheima.service.front;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.front.Member;

import java.util.List;

public interface MemberService {

    List<Member> findAll() throws Exception;


    /**
     * 注册新用户
     * @param member
     * @return
     */
    boolean register(Member member);
    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo queryPage(Integer pageNum, Integer pageSize)throws Exception;

    Member findById(String memberId) throws Exception;

    void add(Member member) throws Exception;

    void deleteById(String... memberIds) throws Exception;

    void update(Member member) throws Exception;

}
